package com.shangxian.giveithome.mapper;


import com.shangxian.giveithome.entity.community.Collections;
import com.shangxian.giveithome.entity.community.CollectionsList;
import com.shangxian.giveithome.entity.community.IssueList;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CollectionsMapper {

    List<Collections> findMyCollections(Long userId, int pageNumber, int pageSize);

    List<CollectionsList> findCollectionsList(Long userId, int pageNumber, int pageSize);

    List<CollectionsList> findCollectionsLists(List<Long> collectionId);

    CollectionsList findCollection(Long id);


    List<IssueList> findAttentionUserCollectionsListDetails(Long id, int pageNumber, int pageSize);

    List<Collections> findCollectionNameById(List<Long> ids);

    int findCollectionNameByUserId(Long userId,String collectionName);

    /**
     * 查询合集数目
     */
    int findCollectionCount(Long userId);

    /**
     * 添加合集
     */
    int addCollection(Collections collections);

    /**
     * 添加领养合集
     */
    int addAdoptCollection(Collections collections);




}
